<% layout('/layouts/default.html', {title: '任务扣分表管理', libs: ['dataGrid']}){ %>
<div class="main-content">
	<div class="box box-main">
		<div class="box-header">

		<div class="box-body">
			<#form:form id="searchForm" model="${dcSupTaskScore}" action="${ctx}/dceconomicindicator/dcSupTaskScore/listDataDes?leaderOrgCode=${dcSupTaskScore.leaderOrgCode}&taskYear=${dcSupTaskScore.taskYear}&createUnit=${dcSupTaskScore.createUnit}&echart=${dcSupTaskScore.echart}" method="post" class="form-inline "
					data-page-no="${parameter.pageNo}" data-page-size="${parameter.pageSize}" data-order-by="${parameter.orderBy}">

		</div>
			</#form:form>
			<table id="dataGrid"></table>
			<div id="dataGridPage"></div>
		</div>
	</div>
</div>
<% } %>
<script>
// 初始化DataGrid对象
$('#dataGrid').dataGrid({
	searchForm: $("#searchForm"),
	columnModel: [
		{header:'${text("任务标题")}', name:'task_title', width:200, align:"left",index:'info.task_title'},
		{header:'${text("任务内容")}', name:'task_content', sortable:false, width:200, align:"left", formatter: function(val, obj, row, act){
				return '<a href="${ctx}/taskdeploy/dcSupTaskInfo/detailForm?id='+row.task_id+'" class="btnList" data-title="${text("督办任务信息")}">'+(val||'暂无内容')+'</a>';
			}},
		{header:'${text("反馈开始时间")}', name:'feedback_start_time',   index:'f.feedback_start_time',width:200, align:"left"},
		{header:'${text("反馈结束时间")}', name:'feedback_end_time',  index:'f.feedback_end_time', width:200, align:"left"},
		{header:'${text("反馈时间")}', name:'feedback_time', index:'f.feedback_time', width:200, align:"left"},
		{header:'${text("被扣分")}', name:'score',  width:150, align:"center",index:'score.score'},
		{header:'${text("扣分原因")}', name:'score_reason',  width:200, align:"left",index:'score.score_reason'}
		// ,
		//
		// {header:'${text("操作")}', name:'actions', width:260,align:"center", formatter: function(val, obj, row, act){
		// 		var actions = [];
		// 		actions.push('<a href="${ctx}/audit/taskReceive/taskReceiveOneView?remarks2=0&id=' + row.feedback_id + '" class="btn btn-primary btn-xs btnList" title="${text("查看")}" ><span>查看</span></a>&nbsp;');
		//
		// 		return actions.join('');
		// 	}}
	],
	// 加载成功后执行事件
	ajaxSuccess: function(data){
		
	}
});
function cz(){
	searchForm.reset();
	$('#dataGrid').dataGrid('reloadGrid');
}
</script>